<%@page import="com.yunhe.biz.SupplierBizImpl"%>
<%@page import="com.yunhe.biz.ISupplierBiz"%>
<%@page import="com.yunhe.entity.Supplier"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="nav.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>商城后台管理</title>
</head>
<body>

	<%
		String address = request.getParameter("address");
		String remark = request.getParameter("remark");
		address = new String(address.getBytes("ISO-8859-1"), "utf-8");
		remark = new String(remark.getBytes("ISO-8859-1"), "utf-8");
		//System.out.println(rremark);
		request.setAttribute("aaddress", address);
		request.setAttribute("rremark", remark);
	%>
	<script type="text/javascript">
		var adddom = "<form action='../OrdersServlet?action=update&oid=${param.oid}' method='post' role='form'>"
				+ "<table class='table table-bordered table-hover table-condersed'>"
				+ "<tr class='active success info'>"
				+ "<td>价格：</td>"
				+ "<td><input type='text' name='price' class='form-control' style='height: 30px' value='${param.price}'></td>"
				+ "</tr>"
				+ "<tr class='active success info'>"
				+ "<td>数量：</td>"
				+ "<td><input type='text' name='number' class='form-control' style='height: 30px' value='${param.number}'></td>"
				+ "</tr>"
				+ "<tr class='active success info'>"
				+ "<td>地址：</td>"
				+ "<td><input type='text' name='address' class='form-control' style='height: 30px' value='${aaddress}'></td>"
				+ "</tr>"
				+ "<tr class='active success info'>"
				+ "<td>备注：</td>"
				+ "<td><input type='text' name='remark' class='form-control' style='height: 30px' value='${rremark}'></td>"
				+ "</tr>"
				+ "<tr class='active success info'>"
				+ "<td>状态：</td>"
				+ "<td><select name='state'>"
				+ "<c:if test='${param.state==0}'>"
				+ "<option selected value='0'>未发货</option>"
				+ "<option value='1'>已发货</option>"
				+ "</c:if>"
				+ "<c:if test='${param.state==1}'>"
				+ "<option selected value='1'>已发货</option>"
				+ "</c:if>"
				+ "</select></td></tr>"
				+ "<tr class='active success info'>"
				+ "<td colspan=2><input type='submit' value='改好了，提交' class='btn'>"
				+ "</td></tr></table></form>";
		var navdom = "<strong class='am-text-danger am-text-lg'>商品信息管理</strong> / <small>GoodsInfo</small>";
		$("#abc").html(navdom);
		$("#xyz").html(adddom);
	</script>
</body>
</html>